package com.googlecode.wmlynar.gwtbeans.client.beans.converters;

import com.googlecode.wmlynar.gwtbeans.client.beans.Converter;

/**
 * Implementation of the converter interface that converts given value to a
 * string.
 * 
 * @author Wojciech Mlynarczyk (wmlynar@gmail.com)
 * 
 */
public class ParseIntConverter implements Converter {

    public static final ParseIntConverter INSTANCE = new ParseIntConverter();

    public Object convert(final Object t) {
        return Integer.parseInt((String) t);
    }

}
